/*
 * @Descripttion: 
 * @version: 
 * @Author: cyj
 * @Date: 2022-12-11 19:04:11
 */
//歌单界面请求函数

import request from "../../../utils/request";

//获取精品歌单标签列表 
export const getHighqualityTags = () => request({
    url:'/playlist/highquality/tags',
    method:'GET'
})

//获取顶部精品歌单  cat 为分类 取某歌单中的一个
export const getTopHighquality = (cat) => request({
    url:'/top/playlist/highquality',
    method:'GET',
    params:{
        cat,
        limit:1
    }
})

//获取默认显示的歌单
// export const getSongs = (before) => request({
//     url:'/top/playlist/highquality',
//     method:'GET',
//     params:{
//         before
//     }
// })

//获取所有歌单分类标签 左边的所有歌单标签
export const getAllTag = () => request({
    url:'/playlist/catlist',
    method:'GET'
})

//获取热门歌单分类标签  右边的歌单标签
export const getHotTag = () => request({
    url:'/playlist/hot',
    method:'GET'
})

//获取歌单
export const getSongList = (cat,offset) => request({
    url:'/top/playlist',
    method:'GET',
    params:{
        cat,
        offset,   //用于分页 （页码 -1）* limit
        limit:48
    }
})
 